package com.jeesite.modules.fl.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.service.CrudService;
import com.jeesite.modules.fl.dao.ActionRecordDao;
import com.jeesite.modules.fl.entity.ActionRecord;

@Service
@Transactional(readOnly=true)
public class ActionRecordService extends CrudService<ActionRecordDao,ActionRecord>{

	/**
	 * 获取单条数据
	 * @param actionRecord
	 * @return
	 */
	@Override
	public ActionRecord get(ActionRecord actionRecord) {
		ActionRecord entity = super.get(actionRecord);
		return entity;
	}
	
	/**
	 * 查询数据
	 * @param actionRecord
	 * @return
	 */
	@Override
	public List<ActionRecord> findList(ActionRecord actionRecord) {
		return super.findList(actionRecord);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param actionRecord
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(ActionRecord actionRecord) {
		super.save(actionRecord);
	}

	/**
	 * 更新状态
	 * @param actionRecord
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(ActionRecord actionRecord) {
		super.updateStatus(actionRecord);
	}
	
	/**
	 * 删除数据
	 * @param actionRecord
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(ActionRecord actionRecord) {
		super.delete(actionRecord);
	}
}
